<!--
 * @Author         : yanyongyu
 * @Date           : 2022-09-30 10:05:36
 * @LastEditors    : yanyongyu
 * @LastEditTime   : 2022-10-04 09:11:23
 * @Description    : None
 * @GitHub         : https://github.com/yanyongyu
-->

{% from "components/header.html.jinja" import header %}

{% from "components/pr/header.html.jinja" import pr_header %}
{% from "components/pr/action.html.jinja" import pr_action %}

{% from "components/diff/file.html.jinja" import diff_file %}

{% extends "main.html.jinja" %}
{% block main %}
{{ header(get_issue_repo(issue)) }}
<div class="clearfix mt-4 px-3 px-md-4 px-lg-5">
  <div class="position-relative">
    <div class="mb-3">
      {{ pr_header(issue) }}
      <div>
        {% set diff = get_pull_request_diff(get_pull_request(issue)) %}
        {% for file in diff %}
        {{ diff_file(file) }}
        {% endfor %}
      </div>
      {{ pr_action(issue) }}
    </div>
  </div>
</div>
{% endblock %}
